<?php

namespace Lib\Controller;

use Think\Controller,
    Common\Common\ReturnParams,
    Common\Common\UserVerify;

class BaseController extends Controller
{
    public function apiSuccess($data)
    {
        ReturnParams::$code = 'ok';
        ReturnParams::$data = $data;
        return;
    }

    public function apiError($code)
    {
        ReturnParams::$code = $code;
        ReturnParams::$data = $code;
        return;
    }

        public function apiReturn($code,$data)
    {
        ReturnParams::$code = $code;
        ReturnParams::$data = $data;
        return;
    }

}